import Float from "./inputFloat";
import Resizable from "./resizable";
const directives = {
  //汇总自定义指令
  Float, //保留两位小数
  Resizable, //自定义拖拽元素的宽
};

export default {
  //导出自定义指令
  install(app) {
    // 以安装的方式插到app中
    Object.keys(directives).forEach((key) => {
      // 遍历directives对象的key
      app.directive(key, directives[key]); // 将每个directive注册到app中
    });
  },
};
